package cn.darkhorse.messystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 班组表
 * </p>
 *
 * @author maoguanjun
 * @since 2024-04-29
 */
@Getter
@Setter
  @TableName("saas_team")
@ApiModel(value = "SaasTeam对象", description = "班组表")
public class SaasTeam implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("编码")
      @Size(min = 0,max = 12, message = "编码长度在0到12之间")
      private String code;

      @ApiModelProperty("班组类型 0：维修1：保养2：巡检")
      //@TableField(updateStrategy = FieldStrategy.IGNORED)
      private String type;

      @ApiModelProperty("名称")
      @Size(min = 0,max = 10, message = "名称的长度在0到10之间")
      private String name;

      @ApiModelProperty("创建时间")
      private LocalDateTime gmtCteate;

      @ApiModelProperty("修改时间")
      private LocalDateTime gmtModify;

      @ApiModelProperty("创建人")
      private Long createBy;


}
